﻿@{
    ViewBag.Title = "学年学期";
}
@section header{

}
<form id="form1">
    <div class="form-layout">
        <input type="hidden" name="ID" value="" />
        <table class="form">

            <tr>
                <th class="formTitle">学年学期号</th>
                <td class="formValue">
                    <input id="Name" name="Name" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">学期号简称</th>
                <td class="formValue">
                    <input id="ShortName" name="ShortName" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">起始上课周</th>
                <td class="formValue">
                    <input id="StartWeek" name="StartWeek" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">截止上课周</th>
                <td class="formValue">
                    <input id="EndWeek" name="EndWeek" type="text" class="form-control " autocomplete="off" />
                </td>
            </tr>

            <tr>
                <th class="formTitle">当年学期标志</th>
                <td class="formValue">
                    <input id="Mark" name="Mark" type="text" class="form-control " autocomplete="off" />
                </td>
                @*</tr>*@


        </table>
    </div>
</form>
@section scripts{
    <script>
        var baseUrl = "/School/AcadYearTerm/";
        var keyValue = $.request("keyValue");
        $(function () {
            initControl();
            $.ajax({
                url: baseUrl + "GetFormJson",
                data: { keyValue: keyValue },
                dataType: "json",
                async: false,
                success: function (data) {
                    $("#form1").formSerialize(data);
                    $("#form1").find('.form-control,select,input').attr('readonly', 'readonly');
                    $("#form1").find('div.ckbox label').attr('for', '');
                }
            });
        });
        function initControl() {

        }
    </script>
}